<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/apogeu/css/estilos1.css" type="text/css">

<title>Fórum</title>

</head>
<body>
	<div id="corpo">
		<c:import url="cabecalho.jsp" />
		
		<div id="conteudo">
			<div id="esquerda">
				<c:import url="menu.jsp" />
			</div>
			
			<div id="sub_conteudo">
				
				<center>
					<h3>FÓRUNS</h3>
					<form name="form_filtro" method="post" action="/apogeu/forum/forum?acao=3&">
						<select name="codigo">
							<c:forEach var="titulos" items="${lista}">
								<option value="${titulos.codigo}">${titulos.titulo}</option>	
							</c:forEach>
						</select>
						
						<br />
						<input type="submit" name="button" value="ENVIAR" />
					</form>
				</center>
						
				<br />
				<hr />
				
				<center>
					<p><b>${forum.titulo}</b></p>
				</center>
				
				<p>${forum.conteudo}</p>
				
				<br />
				
				<center>
					<c:if test="${fn:length(forum.imagem1) > 0}">
						<img src="/apogeu/forum/forum?acao=4&codigo=${forum.codigo}&imagem=1" width="220" height="200"/>
					</c:if>
					&nbsp;&nbsp;&nbsp;&nbsp;
					<c:if test="${fn:length(forum.imagem2) > 0}">
						<img src="/apogeu/forum/forum?acao=4&codigo=${forum.codigo}&imagem=2" width="220" height="200"/>
					</c:if>
					&nbsp;&nbsp;&nbsp;&nbsp;
					<c:if test="${fn:length(forum.imagem3) > 0}">
						<img src="/apogeu/forum/forum?acao=4&codigo=${forum.codigo}&imagem=3" width="220" height="200"/>
					</c:if>
					&nbsp;&nbsp;&nbsp;&nbsp;
					<c:if test="${fn:length(forum.imagem4) > 0}">
						<img src="/apogeu/forum/forum?acao=4&codigo=${forum.codigo}&imagem=4" width="220" height="200"/>
					</c:if>
				</center>
			</div>
		</div>
		
		<c:import url="rodape.jsp" />
	</div>
</body>
</html>